package com.ttpai.boot.lbs.interceptor;

import org.springframework.ui.ModelMap;
import org.springframework.web.context.request.WebRequest;
import org.springframework.web.context.request.WebRequestInterceptor;

/**
 * Created by Kail on 2017/2/27.
 * Copyright(c) ttpai All Rights Reserved.
 *
 * @see com.ttpai.boot.lbs.configurer.WebAppConfigurer 需要在这里注册
 */
public class WebAppBaseInterceptor implements WebRequestInterceptor {

    @Override
    public void preHandle(WebRequest webRequest) throws Exception {
//        System.out.println("preHandle");
    }

    @Override
    public void postHandle(WebRequest webRequest, ModelMap modelMap) throws Exception {
//        System.out.println("postHandle");
    }

    @Override
    public void afterCompletion(WebRequest webRequest, Exception e) throws Exception {
//        System.out.println("afterCompletion");
    }
}
